/**
 * There are <a href="https://github.com/thinkgem/jeesite">JeeSite</a> code generation
 */
package com.chlitina.store.modules.sms.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.chlitina.store.common.service.BaseService;
import com.chlitina.store.modules.sms.dao.SmsTemplateDao;
import com.chlitina.store.modules.sms.entity.SmsTemplate;

/**
 * 短信顾客模板Service
 * @author liujiang
 * @version 2013-06-21
 */
@Component
@Transactional(readOnly = true)
public class SmsTemplateService extends BaseService {

	@SuppressWarnings("unused")
	private static Logger logger = LoggerFactory.getLogger(SmsTemplateService.class);
	
	@Autowired
	private SmsTemplateDao smsTemplateDao;
	
	public SmsTemplate get(Long id) {
		return smsTemplateDao.findOne(id);
	}
	
	public SmsTemplate getByCode(String code) {
		return smsTemplateDao.getByCode(code);
	}
}
